﻿
@{
    ViewData["Title"] = "SowAllocateList";
    Layout = "~/Views/Home/Main.cshtml";
}

<script src="https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.17.2/xlsx.full.min.js"></script>

<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">

<h4>原料管理/调拨列表</h4>
<br/>
<br/>

<form class="layui-form layui-row layui-col-space16" style="width:1000px">
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">调拨编号：</label>
            <div class="layui-input-inline">
                <input type="text" id="AllocateNumber" name="AllocateNumber" placeholder="请输入" autocomplete="off" class="layui-input">
            </div>
        </div>

        <div class="layui-inline">
            <label class="layui-form-label">调拨日期：</label>
            <div class="layui-input-inline">
                <input type="text" id="AllocateDate" name="AllocateDate" class="layui-input" id="ID-laydate-demo" placeholder="yyyy-MM-dd">
            </div>
        </div>

        <div class="layui-inline">
            <label class="layui-form-label">状态：</label>
            <div class="layui-input-inline">
                <select id="AllocateStatus" name="AllocateStatus">
                  <option placeholder="请选择状态"></option>
                  <option value="已通过">已通过</option>
                  <option value="已驳回">已驳回</option>
                  <option value="待审核">待审核</option>
                  <option value="审核中">审核中</option>
                </select>
            </div>
        </div>
        
        <div>
            <div class="layui-inline" class="layui-btn-container">
                <button type="button" class="layui-btn layui-bg-blue" lay-on="test-page-custom" onclick="location.href='/Allocate/AddAllocateInfo'">
                    <i class="layui-icon layui-icon-add-circle-fine"></i>添加
                </button>
@*                  @using (Html.BeginForm("Import", "YourControllerName", FormMethod.Post, new { enctype = "multipart/form-data" }))
                 {
                     <input type="file" name="importFile" />
                     <input type="submit" value="导入" />
                 } *@
                 <button type="button" class="layui-btn layui-btn-primary" id="exportBtn">导出</button>
            </div>

            <div class="layui-inline" style="margin-left:500px">
                <button class="layui-btn" lay-submit>重置</button>          
                <button type="button" class="layui-btn layui-bg-blue" onclick="ShwoAllocate()">查询</button>  
            </div>
        </div>
    </div>
</form>


<table class="layui-table" id="AllocateTable" width="100%"></table>
<script src="~/js/Allocate/ShwoAllocate.js"></script>
